using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using AandEDLL.DataAccess.Visit;

namespace AandEDLL.DataAccess
{
    [DataObject(true)]
    public class Category : Visitable
    {
        private int categoryID;
        [DataObjectFieldAttribute(true, true, false)]
        public int CategoryID
        {
            get { return categoryID; }
            set { categoryID = value; }
        }

        private string name;
        [DataObjectFieldAttribute(false, false, false, 50)]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private string description;
        [DataObjectFieldAttribute(false, false, false, 50)]
        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        private DateTime savedDate;
        [DataObjectFieldAttribute(false, false, false)]
        public DateTime SavedDate
        {
            get { return savedDate; }
            set { savedDate = value; }
        }

        public void accept(Visitor visitor)
        {
            visitor.visit(this);
        }

        
    }
}